# -*- coding: utf-8 -*-
# @Time    : 2018/8/14 14:50
# @Author  : 聂家利
# @Email   : 1073438012@qq.com
# @File    : __init__.py
# @Software: PyCharm

from flask import Flask


def create_app():
    app = Flask(__name__)
    app.config.from_object('config')
    register_blueprint(app)
    return app


# 4.2 5:01
def register_blueprint(app):
    from application.web.controller import web
    app.register_blueprint(web)